<?php


namespace app\common\model\system\common;

use app\common\model\BaseModel;

class Problem extends BaseModel
{

    public static function tablePk(): ?string
    {
        return 'common_problem_id';
    }

    public static function tableName(): string
    {
        return 'common_problem';
    }


    public function type()
    {
        return $this->hasOne(ProblemCategory::class,'common_problem_type_id','common_problem_type_id');
    }
}
